How to test REST API with Swagger